package com.itlong.cloud.operate.resource;

import com.itlong.cloud.noncore.operate.IOperateTimeTaskDeveloperLogClient;
import com.itlong.cloud.operate.service.IOperateTimeTaskDeveloperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      运营-开发者日志及操作日志接口暴露实现类
 * </desc>
 *
 * @createDate2020/11/9
 **/
@RestController
public class OperateTimeTaskDeveloperLogServiceResource implements IOperateTimeTaskDeveloperLogClient {


    @Autowired
    private IOperateTimeTaskDeveloperLogService iOperateTimeTaskDeveloperLogService;

    /**
     * <desc>
     *      删除3月前开发者访问日志
     * </desc>
     *
     * @param
     * @return 受影响行数
     * @Author Zhu.yj
     * @createDate  2020/11/9
     */
    @Override
    @PostMapping("/operate/timeTask/deleteDeveloperLog")
    public void deleteDeveloperLog() throws Exception {
        iOperateTimeTaskDeveloperLogService.deleteDeveloperLog();
    }

    /**
     * <desc>
     *      删除3月前登录日志
     * </desc>
     *
     * @param
     * @return 受影响行数
     * @Author Zhu.yj
     * @createDate  2020/11/9
     */
    @Override
    @PostMapping("/operate/timeTask/deleteLoginLog")
    public void deleteLoginLog() throws Exception {
        iOperateTimeTaskDeveloperLogService.deleteLoginLog();
    }
}
